Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding semantic segmentation example #1764

Merged
merged 9 commits into from
Jul 6, 2022

Conversation

JohnDoll2023
Copy link
Contributor

Description

Brief description of what this PR is about

Adding semantic segmentation example which includes:

  • Semantic segmentation main file
  • semantic segmentation translator
  • semantic segmentation translator factory
  • semantic segmentation readme example doc
  • example images
  • typo fix

@frankfliu
Copy link
Contributor

Let add images to S3 bucket

}

/** Resizes the image based on the shorter edge or maximum edge length. */
private class ResizeShort implements Transform {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private class ResizeShort implements Transform {
private static final class ResizeShort implements Transform {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ResizeShort class from the InstanceSegmentationTranslator is not static or final, and by making it static, the shortEdge, maxEdge, rescaledHeight, and rescaledWidth variables must be initialized at the beginning of the file. If I make it static, what values should they be assigned?

@codecov-commenter
Copy link

codecov-commenter commented Jul 5, 2022

Codecov Report

Merging #1764 (b42c830) into master (bb5073f) will decrease coverage by 2.40%.
The diff coverage is 66.30%.

@@             Coverage Diff              @@
##             master    #1764      +/-   ##
============================================
- Coverage     72.08%   69.68%   -2.41%     
- Complexity     5126     5485     +359     
============================================
  Files           473      524      +51     
  Lines         21970    24272    +2302     
  Branches       2351     2640     +289     
============================================
+ Hits          15838    16913    +1075     
- Misses         4925     6048    +1123     
- Partials       1207     1311     +104     
Impacted Files Coverage Δ
api/src/main/java/ai/djl/modality/cv/Image.java 69.23% <ø> (-4.11%) ⬇️
...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java 76.00% <ø> (ø)
...rc/main/java/ai/djl/modality/cv/output/Joints.java 71.42% <ø> (ø)
.../main/java/ai/djl/modality/cv/output/Landmark.java 100.00% <ø> (ø)
...main/java/ai/djl/modality/cv/output/Rectangle.java 72.41% <0.00%> (ø)
...i/djl/modality/cv/translator/BigGANTranslator.java 21.42% <ø> (-5.24%) ⬇️
...odality/cv/translator/BigGANTranslatorFactory.java 33.33% <0.00%> (+8.33%) ⬆️
...nslator/InstanceSegmentationTranslatorFactory.java 14.28% <0.00%> (-3.90%) ⬇️
.../cv/translator/SemanticSegmentationTranslator.java 0.00% <0.00%> (ø)
.../cv/translator/StyleTransferTranslatorFactory.java 40.00% <ø> (ø)
... and 414 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1c7448...b42c830. Read the comment docs.

@frankfliu frankfliu merged commit 5923d95 into deepjavalibrary:master Jul 6, 2022
@JohnDoll2023 JohnDoll2023 deleted the semantic branch July 6, 2022 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants